<?php
/**
 * ============================================================================
 * Author: Abing
 * Date: 17-3-21
 * 联系QQ:501443501
 * ============================================================================
 */
class ErrorCode{
    const USERNAME_EXISTS = 1;//用户已存在
    const PASSWORD_EMPTY = 2;//密码不能为空
    const USERNAME_EMPTY = 3;//用户名不能为空
    const REGISTER_FAIL = 4;//注册失败
    const USERNAME_ORPASSWORD_WORN = 5;//用户名或密码错误

    const ARTICLE_TITLE_EMPTY = 6;//文章标题不能为空
    const ACTICLE_CONTENT_EMPTY = 7;//文章内容不能为空
    const ACTICLE_CREATE_FAIL = 8;//新建文章失败
    const ACTICLE_EMPTY = 9;//文章不存在
    const ACTICLE_DELETE_FAIL = 10;//删除文章失败
    const ACTICLE_CONTENT_PERMIT = 11;//没有权限修改文章
    const ACTICLE_CONTENT_EDIT_FAIL =12;//修改文章失败
    const ACTICLE_DELETE_PERMIT = 13;//没有权限删除此文章
    const LIST_FAIL = 14;//获取列表失败
    const LIST_TO_BIG = 15;//分页数过大
}
